package text;

import java.util.ArrayList;
import java.util.List;

class Teachers {
    String m_name;
    int m_id;
    int m_age;

    Teachers(String name, int id, int age) {
        this.m_name = name;
        this.m_id = id;
        this.m_age = age;
    }
}

class Course {
    int m_id;
    String m_name;
    String m_place;
    String m_time;
    Teachers m_Teacher;

    Course(int id, String name, String place, String time, Teachers Teacher) {
        this.m_id = id;
        this.m_name = name;
        this.m_place = place;
        this.m_time = time;
        this.m_Teacher = Teacher;
    }
}
class Main{
    public static void main(String[] args) {
        //noinspection MismatchedQueryAndUpdateOfCollection
        List<Course> Course = new ArrayList<>();
        Teachers teacher1 = new Teachers("许老师", 54250, 24);
        Teachers teacher2 = new Teachers("张老师", 44500, 25);
        Teachers teacher3 = new Teachers("王老师", 44944, 30);

        Course.add(new Course(0, "math", "0001", "11月01日 8:00-9:40", teacher1));
        Course.add(new Course(1, "English", "0008", "11月05日 10:00-11:40", teacher2));
        Course.add(new Course(2, "Chinese", "0002", "11月10日 13:30-15:10", teacher3));}
}